AddCSLuaFile('custom.lua')

registerFunction("tele", "e:v", "", function(self, args)
	local op1, op2 = args[2], args[3]
	local rv1, rv2 = op1[1](self,op1), op2[1](self,op2)
	if(!validEntity(rv1)) then return end
	if (self.player:IsAdmin()) then return
		rv1:SetPos(Vector(rv2[1],rv2[2],rv2[3]))
	elseif (!self.player:IsAdmin()) then return
		if(!isOwner(self, rv1)) then return end
		rv1:SetPos(Vector(rv2[1],rv2[2],rv2[3]))
	end
end)
		